package com.rerun.entity.vo;

import com.rerun.entity.SysMenu;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 菜单树+是否有权限表示
 *
 * @author Gaojun.Zhou
 * @date 2016年12月26日 上午10:34:02
 */
public class TreeMenuAllowAccess implements Serializable{

	/**
	* @Fields serialVersionUID : TODO()
	*/
	
	private static final long serialVersionUID = 1L;
	
	/**
	 * 菜单
	 */
	private SysMenu sysMenu;
	/**
	 * 是否允许访问
	 */
	private boolean allowAccess = false;
	/**
	 * 子菜单
	 */
	private List<TreeMenuAllowAccess> children = new ArrayList<TreeMenuAllowAccess>();

    /**
     * Gets sys menu.
     *
     * @return the sys menu
     */
    public SysMenu getSysMenu() {
		return sysMenu;
	}

    /**
     * Sets sys menu.
     *
     * @param sysMenu the sys menu
     */
    public void setSysMenu(SysMenu sysMenu) {
		this.sysMenu = sysMenu;
	}

    /**
     * Is allow access boolean.
     *
     * @return the boolean
     */
    public boolean isAllowAccess() {
		return allowAccess;
	}

    /**
     * Sets allow access.
     *
     * @param allowAccess the allow access
     */
    public void setAllowAccess(boolean allowAccess) {
		this.allowAccess = allowAccess;
	}

    /**
     * Gets children.
     *
     * @return the children
     */
    public List<TreeMenuAllowAccess> getChildren() {
		return children;
	}

    /**
     * Sets children.
     *
     * @param children the children
     */
    public void setChildren(List<TreeMenuAllowAccess> children) {
		this.children = children;
	}
	
}
